package com.xt.mvcpilot.tmp.manager;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import com.xt.mvcpilot.tmp.User;

public class UserImpl implements IUser {

	@PersistenceContext
	EntityManager em;

	public void save(User user) {
		try {
			em.persist(user);
		} catch (RuntimeException re) {
		}
	}

	public EntityManager getEntityManager() {
		return em;
	}

}
